<template>
  <div class="aa">
    <h1>slot-comp</h1>
    <!-- slot标签在子组件中占位 -->
    <slot />
    <div class="bb">
      <div>
        <slot name="left" :a="1" b="true" />
      </div>
      <div>
        <slot name="rigth" :c="{d:'1',e:'a'}" />
      </div>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
.aa{
    border: 2px solid rgb(179, 107, 107);
    width: 500px;
    height: 200px;
}
.bb{
    display: flex;
    justify-content: space-between;

}
</style>
